optional With Default
fun optionalWithDefault(default: () -> String): ReadOnlyProperty<Any?, String>
Content copied to clipboard
Get an optional delegate with a default value. Property names will be converted to snake-case unless name is specified.
fun optionalWithDefault(name: String, default: () -> String): ReadOnlyProperty<Any?, String>
Content copied to clipboard
Get an optional delegate with a default value for name.